.wallet-container {
  display: flex;
  align-items: stretch;
  gap: 20px;
  padding: 20px 40px;

  .card {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E6E6E6;
    padding: 20px;
  }

  .left-info {
    width: 312px;
    .user-card {
      @include flex_between;
      align-items: stretch;
      height: 72px;
      width: 100%;
      position: relative;
      padding: 12px;
      color: #000;
      .card-bg {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
      }
      div {
        position: relative;
        z-index: 1;
      }
      .avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        margin-right: 8px;
        position: relative;
        z-index: 1;
      }

      .user-info {
        position: relative;
        z-index: 1;
        flex: 1;

        .name {
          font-size: 18px;
          font-weight: bold;
          margin-right: 4px;
          img {
            width: 80px;
            height: 18px;
          }
        }
        .member-number {
          color: $-color-gray;
        }
      }
      &.level-2 {
        color: #44ABEB!important;
        .member-number {
          color: #68AEEF;
        }
      }
      &.level-10 {
        color: $-color-gray;
        .member-number {
          color: $-color-muted;
        }
      }
      &.level-11 {
        color: $-color-brown;
        .member-number {
          color: $-color-brown;
        }
      }
      &.level-22 {
        color: #E4E7FF;
        .member-number {
          color: #8E91AB;
        }
      }
      &.level-33 {
        color: #FFEEDA;
        .member-number {
          color: #FFE3C3;
        }
      }
      &.level-44 {
        color: #F0E6FD;
        .member-number {
          color: #B8B8CD;
        }
      }
      &.level-55 {
        color: #FEF6E8;
        .member-number {
          color: #FEF6E8;
        }
      }
    }

    .online-cell {
      margin: 8px;
      .cell {
        @include flex_between;
        padding: 4px 0;
        font-size: 12px;

        .label {
          color: $-color-gray;
          width: 80px;
        }
        .value {
          text-align: right;
        }
      }
    }

    .balance-picture {
      .money-number {
        color: #000;
        font-family: changchun1hao;
      }

      .money-bg {
        height: 45px;
        @include flex_between;
        @include theme_each {
          background: get_color('balance_card_mask'), get_color('balance_card_bg');
        }
        color: #6D6218;
        position: relative;
        border-radius: 8px 8px 0 0;
        font-size: 12px;
        padding: 10px 16px;

        .money-number {
          font-size: 22px;
          line-height: 20px;
          vertical-align: bottom;
        }

        .recharge-btn {
          width: 56px;
          height: 20px;
          background: #1A1A1A;
          border-radius: 20px;
          color: #fff;
          border: none;
          outline: none;
          @include flex_center();
          z-index: 1;
          cursor: pointer;
          i {
            width: 10px;
          }
        }
      }

      .money-bottom {
        display: flex;
        justify-content: space-between;
        background: #FFFAE2;

        div {
          flex: 1;
          height: 33px;
          line-height: 33px;
          font-size: 12px;
          padding-left: 16px;
          position: relative;

          &:first-child:after {
            content: "";
            position: absolute;
            width: 1px;
            height: 12px;
            background: #E6E6E6;
            top: 50%;
            right: 0;
            transform: translateY(-50%);
          }

          span {
            font-family: 'changchun1hao';
            font-size: 14px;
          }
        }
      }
    }

    .nav-group {
      margin-top: 20px;
      @include flex_between;

      .item {
        font-size: 13px;
        flex: 1;
        cursor: pointer;
        text-align: center;

        img {
          width: 36px;
          height: 36px;
        }
      }
    }
  }

  .center {
    margin: 0 20px;
    padding: 0!important;
    width: 450px;

    .center-body {
      height: 100%;
      overflow: auto;
      padding: 20px;

      &::-webkit-scrollbar {
        width: 0
      }
    }

    .carousel-box {
      border-radius: 12px;
      overflow: hidden;
      position: relative;
      .img {
        border-radius: 12px;
        overflow: hidden;
        height: 100%;
        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }

      .carousel-dot {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;

        span {
          display: inline-block;
          width: 8px;
          height: 8px;
          border-radius: 100%;
          border: 1px solid #565656;
          margin: 4px;
          opacity: .5;
          background: #fff;

          &.active {
            opacity: 1;
          }
        }
      }
    }

    .recruit-card {
      height: 162px;
      margin-top: 16px;
      @include theme_each {
        background: get_color('recruit_bg');
      }
    }

    .qrcode-box {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
      margin-top: 10px;

      .item {
        background: #F7F7F7;
        padding: 8px;
        display: flex;
        align-items: center;

        .qrcode {
          background: #fff;
          padding: 12px;
        }

        .name {
          flex: 1;
          font-size: 12px;
          text-align: center;

          img {
            width: 24px;
            height: 24px;
          }

          .iconfont {
            font-size: 12px;
            vertical-align: -2px;
          }
        }
      }
    }
  }

  .right-ranking {
    flex: 1;
    .title-img {
      margin: 0 auto;
      width: 244px;
      height: 20px;
    }

    .top-three {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 3px;
      align-items: flex-end;

      .item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        background-size: 100% 100%;;
        height: 142px;
        text-align: center;
        line-height: 22px;
        padding-bottom: 2px;

        &.item-1 {
          background-image: url("~@/assets/images/wallet/ranking-1.png");
          height: 162px;
          color: #BC7A3C;

          .money {
            margin: 5px 0;
          }

          padding-bottom: 6px;
        }

        &.item-2 {
          background-image: url("~@/assets/images/wallet/ranking-2.png");
          color: $-color-gray;
        }

        &.item-3 {
          background-image: url("~@/assets/images/wallet/ranking-3.png");
          color: #9D5C20;
        }

        .name {
          font-size: 14px;
          font-weight: bold;
        }

        .money {
          font-family: 'changchun1hao';
          font-size: 16px;
        }

        .label {
          font-size: 12px;
        }
      }
    }

    .ranking-list {
      position: relative;
      border-radius: 8px;
      overflow: hidden;

      &:after {
        content: "";
        position: absolute;
        height: 40px;
        background: linear-gradient(180deg, rgba(255, 250, 226, 0) 0%, #FFFAE2 100%);
        bottom: 0;
        left: 0;
        right: 0;
      }

      .ranking-table {
        margin-top: 10px;
        height: 440px;
        overflow: auto;
        border-radius: 8px;
        &::-webkit-scrollbar {
          width: 0
        }
        table {
          width: 100%;
          text-align: center;
          background: #FFFCEE;
          font-size: 12px;
          border-collapse: collapse;

          thead {
            padding: 0 20px;

            th {
              position: sticky;
              top: 0;
              z-index: 1;
              background: #FFFCEE;
              font-weight: 400;
              color: $-color-brown;
              height: 37px;
              line-height: 37px;

              &:after {
                content: "";
                position: absolute;
                height: 1px;
                @include background_color();
                bottom: 0;
                right: 0;
                left: 0;
              }

              &:first-child:after {
                left: 20px;
              }

              &:last-child:after {
                right: 20px;
              }
            }
          }

          tr th:first-child, tr td:first-child {
            padding-left: 20px;
          }

          tr th:last-child, tr td:last-child {
            text-align: right;
            padding-right: 20px;
          }

          td {
            height: 30px;
            line-height: 30px;
            font-family: 'changchun1hao';
            font-size: 14px;

            &.name {
              font-size: 12px;
            }
          }
        }
      }
    }
  }
}

